<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    div{
      width: 200px;
      height: 200px;
      background-color: hotpink;
      /* 转换div为弹性盒子 */
      display: flex;
    }
  </style>
</head>
<body>
  <div>
    <p>段落1</p>
    <p>段落2</p>
    <p>段落3</p>
    <p>段落4</p>
    <span>文本1</span>
    <span>文本2</span>
    <span>文本3</span>
    <span>文本4</span>  
  </div>
</body>
</html>